<template>
  <div class="vue-box" style="display: none;" :style="'display: block;'">
    <div class="c-panel">
      <!-- ------------- 检索参数 ------------- -->
      <div class="c-title">系统监控</div>
      <el-alert v-for="(value,key,index) in links" type="success" :closable="false" :title="key" :key="key"
                style="border-width: 0px;">
        <el-link type="primary" @click="clickHref(key,value)">
          {{value.href}}
        </el-link>
      </el-alert>
    </div>
  </div>
</template>

<script>
let PATH = "/actuator"
module.exports = {
  components: {},
  watch: {},
  data() {
    return {
      links: {}
    }
  },
  methods: {
    f5() {
      sa.ajax(PATH, this.p, () => {
      }, {
        type: 'get', success: (res) => {
          this.links = res._links
        }
      })
    },
    clickHref(key,value){
      sa_admin.showTab({
        name: key,
        url: value.href
      })
    }
  },
  mounted() {
  },
  created() {
    this.f5()
  }
}
</script>

<style scoped>
.el-alert {
  margin-bottom: 14px;
  padding: 1em 0.5em;
}
</style>
